package com.example.controller;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.service.MallService;

@RestController
public class MallController {
	@Resource
	private MallService mallService;

	@GetMapping("/sale")
	public String sale(Integer orderId, Integer memberId, Integer goodsId, Integer points, Integer quantity) {
		return mallService.sale(orderId, memberId, goodsId, points, quantity);
	}
}